<?php
include_once('admin-load.php');
    if (isset($_POST['submit_form'])) {
        save_new_user();
    }
?> 
<?php
	include_once 'header.php';
?>
            <div id="main_content">
                            <div id="content">
                    
		</div>
        <div class="container">
            <h5>Create New User</h5>

        </div>
				<div id="main">
                    <h2>Create New User</h2>
                    <form id="add_user" action="user-add.php" method="post">
                        <input type="hidden" value="1" name="submit_form"/>
                        <fieldset>
                            <legend>Form Add New User</legend>
                        <div>
                            <label for="username">Username <span>*</span></label>
                            <input type="text" id="username" name="username"/>
                        </div>
                        <div>
                            <label for="password">Password <span>*</span></label>
                            <input type="password" id="password" name="password"/>
                        </div>
                        <div>
                            <label for="email">Email <span>*</span></label>
                            <input type="text" id="email" name="email"/>
                        </div>
                        <div>
                            <label for="firstname">First name</label>
                            <input type="text" id="firstname" name="firstname"/>
                        </div>
                        <div>
                            <label for="lastname">Last name</label>
                            <input type="text" id="lastname" name="lastname"/>
                        </div>
                            <div>
                                <label for="groups">Group</label>
                                    <?php echo groupSelect(); ?>
                            </div>
                        <div class="buttons">
                            <input type="submit" value="Save" name="submit"/>   
                        </div>
                    </form>
                </div>
            </div>
<?php 
	include_once 'footer.php';
?>